CPPFLAGS+=
# Label SRCS contains a list of all the source files that are to be compiled
# following the rules specifies by the chosen platform. All the source files
# included in this list are going to be compiled and linked to create the
# project executable. A common example of use for this label would be:
# 
# SRCS+=$(wildcard $R/swresources/uart_dev_putchar_swr/src/*.c)
# 
# The previous line would include in the list all the source files contained
# in the source root folder.

# PROTECTED REGION ID(uart_dev_putchar_swr_common_src) ENABLED START

SRCS+=

# PROTECTED REGION END

# It is also possible to perform a selective compilation of source files 
# depending on the platform for which the resource is compiled by using
# the flags defined by the framework at configuration time. These flags have a
# known syntax.

ifeq ($(CONFIG_OSAPI_POSIX), y)
# List of files to compile if the destination operating system API is
# POSIX

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix) ENABLED START

SRCS+=

# PROTECTED REGION END

ifeq ($(CONFIG_OS_ERCOS), y)
# List of files to compile if the destination operating system API is
# POSIX and the operating system is ERCOS
CPPFLAGS+= -I $R/swresources/uart_dev_putchar_swr/include
# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos) ENABLED START

SRCS+=$(wildcard $R/swresources/uart_dev_putchar_swr/src/*.c)

# PROTECTED REGION END

ifeq ($(CONFIG_ARCH_SPARC), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS
# and the architecture is SPARC

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_sparc) ENABLED START

SRCS+=$(wildcard $R/swresources/uart_dev_putchar_swr/src/sparc/*.c)

# PROTECTED REGION END

ifeq ($(CONFIG_MP_ERC32), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS,
# the architecture is SPARC and the microprocessor is
# ERC32

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_sparc_microprocessor_erc32) ENABLED START

SRCS+=$(wildcard $R/swresources/uart_dev_putchar_swr/src/sparc/erc32/*.c)

# PROTECTED REGION END

ifeq ($(CONFIG_BOARD_CPU_MICROSAT), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS,
# the architecture is SPARC, the microprocessor is
# ERC32 and the board is cpu_microsat

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_sparc_microprocessor_erc32_board_cpu_microsat) ENABLED START

SRCS+=

# PROTECTED REGION END

endif

endif

endif

ifeq ($(CONFIG_ARCH_SPARC), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS
# and the architecture is SPARC

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_sparc) ENABLED START

SRCS+=

# PROTECTED REGION END

ifeq ($(CONFIG_MP_LEON2), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS,
# the architecture is SPARC and the microprocessor is
# LEON2

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_sparc_microprocessor_leon2) ENABLED START

SRCS+=$(wildcard $R/swresources/uart_dev_putchar_swr/src/sparc/leon2/*.c)

# PROTECTED REGION END

endif

ifeq ($(CONFIG_MP_LEON3), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS,
# the architecture is SPARC and the microprocessor is
# LEON3

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_sparc_microprocessor_leon3) ENABLED START

SRCS+=$(wildcard $R/swresources/uart_dev_putchar_swr/src/sparc/leon3/*.c)

# PROTECTED REGION END

ifeq ($(CONFIG_BOARD_SRG_A3P), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS,
# the architecture is SPARC, the microprocessor is
# LEON3 and the board is srg_a3p

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_sparc_microprocessor_leon3_board_srg_a3p) ENABLED START

SRCS+=

# PROTECTED REGION END

endif

ifeq ($(CONFIG_BOARD_RTU_MICROSAT), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS,
# the architecture is SPARC, the microprocessor is
# LEON3 and the board is rtu_microsat

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_sparc_microprocessor_leon3_board_rtu_microsat) ENABLED START

SRCS+=

# PROTECTED REGION END

endif

endif

endif

ifeq ($(CONFIG_ARCH_IA32), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS
# and the architecture is ia32

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_ia32) ENABLED START

SRCS+=$(wildcard $R/swresources/uart_dev_putchar_swr/src/ia32/*.c)

# PROTECTED REGION END

ifeq ($(CONFIG_MP_X86), y)
# List of files to compile if the destination operating system API is
# POSIX, the operating system is ERCOS,
# the architecture is ia32 and the microprocessor is
# X86

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_ercos_architecture_ia32_microprocessor_x86) ENABLED START

SRCS+=$(wildcard $R/swresources/uart_dev_putchar_swr/src/ia32/x86/*.c)

# PROTECTED REGION END

endif

endif

endif

ifeq ($(CONFIG_OS_RTEMS), y)
# List of files to compile if the destination operating system API is
# POSIX and the operating system is RTEMS

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_posix_os_rtems) ENABLED START

SRCS+=

# PROTECTED REGION END

endif

endif

ifeq ($(CONFIG_OSAPI_RTEMSAPI), y)
# List of files to compile if the destination operating system API is
# RTEMSAPI

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_rtemsapi) ENABLED START

SRCS+=

# PROTECTED REGION END

ifeq ($(CONFIG_OS_RTEMS), y)
# List of files to compile if the destination operating system API is
# RTEMSAPI and the operating system is RTEMS

# PROTECTED REGION ID(uart_dev_putchar_swr_osapi_rtemsapi_os_rtems) ENABLED START

SRCS+=

# PROTECTED REGION END

endif

endif


# It is also possible to create one or more targets to be executed before the
# compilation process. These targets should be included in the list:
# ALT_TARGETS+=

# Also, all the usual compilation and linking flags, like CFLAGS or LDFLAGS are
# available to be used. If you want to set an specific set of compilation flags
# for a certain number of source files, you should define the targets for those
# files in this very file, so that the framework will not use the default ones.

# All the configuration parameters defined for the resource can be used as
# flags for a conditional compilation. A parameter name called PARAMETER_NAME
# defines a label named CONFIG_PARAMETER_NAME whose value can be checked.

